package com.chalk.controller;


import com.chalk.common.util.Result;
import com.chalk.exception.ColumnNotEmptyException;
import com.chalk.service.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author glq
 * @since 2020-12-17
 */

@RestController
@RequestMapping("/v1/sign")
public class SignController {
    @Autowired
    SignService signService;

    /**
     * 获取签到分页
     *
     * @param map
     * @return
     */
    @GetMapping("getSignForPage")
    public Result getSignForPage(@RequestParam Map<String, Object> map) throws ColumnNotEmptyException {
        return Result.success(signService.getSignForPage(map));
    }

}

